package com.ibigcat.module.system.enums.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 服务异常信息枚举定义
 */
@AllArgsConstructor
public enum SystemErrorInfoEnum {
    SYSTEM_ERROR("SYSTEM_ERROR", "服务异常"),
    PARAMS_ERROR("PARAMS_ERROR", "请求参数校验异常"),
    DATA_NOT_FOUND("DATA_NOT_FOUNTD", "数据未找到"),
    DATA_STATUS_ERROR("DATA_STATUS_ERROR", "数据状态异常"),
    DATA_ERROR("DATA_ERROR", "数据异常"),
    DATA_UPDATE_ERROR("DATA_UPDATE_ERROR", "数据更新异常"),
    DATA_INSERT_ERROR("DATA_INSERT_ERROR", "数据插入异常"),
    DATA_ALREADY_EXISTS("DATA_ALREADY_EXISTS", "数据已存在"),
    TIME_RANGE_TOO_LARGE("TIME_RANGE_TOO_LARGE", "最多可以获取30天数据"),
    EXPORT_DATA_IS_EMPTY("EXPORT_DATA_IS_EMPTY", "导出数据为空"),
    ADDING_LOG_FAILED("ADDING_LOG_FAILED", "添加日志失败"),
    ABNORMAL_OPERATION_STATUS_FIELD("ABNORMAL_OPERATION_STATUS_FIELD", "操作状态字段异常"),
    NO_RELEVANT_LOG_INFORMATION_FOUND("NO_RELEVANT_LOG_INFORMATION_FOUND", "未查到相关日志信息"),
    END_TIME_IS_EMPTY("END_TIME_IS_EMPTY", "请输入结束时间"),
    START_TIME_IS_EMPTY("START_TIME_IS_EMPTY", "请输入起始时间"),
    LOGIN_USER_INFO_ERROR("LOGIN_USER_INFO_ERROR", "获取当前用户信息失败"),
    USER_EXISTS_ERROR("USER_EXISTS_ERROR","删除失败，该角色下已存在用户");
    @Getter
    @Setter
    private String code;

    @Getter
    @Setter
    private String message;


}
